<%@ page language="java" contentType="text/html; charset=UTF-8"
    import="java.text.DateFormat,java.text.SimpleDateFormat,java.util.List,com.web.common.po.Article,com.web.article.controller.ArticleController"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
	Article detail = (Article)request.getSession().getAttribute(ArticleController.ARTICLE_DETAIL);
	String title   = "";
	String time    = "";
	String content = ""; 
	if(null != detail){
		DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		title  = detail.getArticleName();
		time   = format.format(detail.getCreateTime());
		content= detail.getArticleContent();
	}
	
%>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><%=title %></title>
	<jsp:include page="/plugins/bootstrap/include.jsp" />
</head>
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<h3>
				<%=title %>
			</h3>
			<blockquote>
				<small>时间 :<cite><%=time %></cite></small>
			</blockquote>
			<p>
				<%=content %>
			</p>
			</p> 
			<a href="<%=path %>/article/list" class="btn" >返回列表</a>
		</div>
	</div>
</div>
</body>
<%request.getSession().removeAttribute(ArticleController.ARTICLE_DETAIL); %>
</html>